import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/user_statistics_entity.g.dart';
import 'dart:convert';
export 'package:seedfour/generated/json/user_statistics_entity.g.dart';

@JsonSerializable()
class UserStatisticsEntity {
	UserStatisticsSumYear? sumYear;
	UserStatisticsCurMonth? curMonth;
	UserStatisticsLastMonth? lastMonth;
	UserStatisticsIncomeData? incomeData;
	UserStatisticsExpendData? expendData;
	UserStatisticsAllocData? allocData;
	UserStatisticsUserBalanceList? userBalanceList;
	UserStatisticsCcList? ccList;
	String? incomeAmount;
	String? allocAmount;
	String? expendAmount;

	UserStatisticsEntity();

	factory UserStatisticsEntity.fromJson(Map<String, dynamic> json) => $UserStatisticsEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsSumYear {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? expendMonthRate;
	String? allocTotal;
	String? allocMonthRate;
	String? rtEffect;

	UserStatisticsSumYear();

	factory UserStatisticsSumYear.fromJson(Map<String, dynamic> json) => $UserStatisticsSumYearFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsSumYearToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsCurMonth {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? incomeYearRate;
	String? expendMonthRate;
	String? expendYearRate;
	String? allocTotal;
	String? allocMonthRate;
	String? allocYearRate;
	String? monthEffect;

	UserStatisticsCurMonth();

	factory UserStatisticsCurMonth.fromJson(Map<String, dynamic> json) => $UserStatisticsCurMonthFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsCurMonthToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsLastMonth {
	String? incomeTotal;
	String? expendTotal;
	String? incomeMonthRate;
	String? incomeYearRate;
	String? expendMonthRate;
	String? expendYearRate;
	String? allocTotal;
	String? allocMonthRate;
	String? allocYearRate;
	String? monthEffect;

	UserStatisticsLastMonth();

	factory UserStatisticsLastMonth.fromJson(Map<String, dynamic> json) => $UserStatisticsLastMonthFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsLastMonthToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsIncomeData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;
	List<int?>? monthEffect;

	UserStatisticsIncomeData();

	factory UserStatisticsIncomeData.fromJson(Map<String, dynamic> json) => $UserStatisticsIncomeDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsIncomeDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsExpendData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;

	UserStatisticsExpendData();

	factory UserStatisticsExpendData.fromJson(Map<String, dynamic> json) => $UserStatisticsExpendDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsExpendDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsAllocData {
	List<int>? value;
	List<int>? yearRate;
	List<int>? monthRate;

	UserStatisticsAllocData();

	factory UserStatisticsAllocData.fromJson(Map<String, dynamic> json) => $UserStatisticsAllocDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsAllocDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceList {
	UserStatisticsUserBalanceListBalance? balance;
	UserStatisticsUserBalanceListMargin? margin;
	UserStatisticsUserBalanceListAlloc? alloc;

	UserStatisticsUserBalanceList();

	factory UserStatisticsUserBalanceList.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceListBalance {
	int? total;
	String? sumAmount;
	String? plusAmount;
	String? minusAmount;
	List<UserStatisticsUserBalanceListBalanceData>? data;

	UserStatisticsUserBalanceListBalance();

	factory UserStatisticsUserBalanceListBalance.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListBalanceFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListBalanceToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceListBalanceData {
	int? createdAt;
	String? amount;
	int? changeSubtype;
	String? afterBalance;
	String? remark;
	int? businessType;
	String? title;

	UserStatisticsUserBalanceListBalanceData();

	factory UserStatisticsUserBalanceListBalanceData.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListBalanceDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListBalanceDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceListMargin {
	int? total;
	String? sumAmount;
	String? plusAmount;
	String? minusAmount;
	List<UserStatisticsUserBalanceListMarginData>? data;

	UserStatisticsUserBalanceListMargin();

	factory UserStatisticsUserBalanceListMargin.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListMarginFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListMarginToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceListMarginData {
	int? createdAt;
	String? amount;
	int? orderStatus;
	dynamic marginDate;
	String? remark;

	UserStatisticsUserBalanceListMarginData();

	factory UserStatisticsUserBalanceListMarginData.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListMarginDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListMarginDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsUserBalanceListAlloc {
	int? total;
	String? sumAmount;
	String? plusAmount;
	String? minusAmount;
	List<dynamic>? data;

	UserStatisticsUserBalanceListAlloc();

	factory UserStatisticsUserBalanceListAlloc.fromJson(Map<String, dynamic> json) => $UserStatisticsUserBalanceListAllocFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsUserBalanceListAllocToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsCcList {
	int? total;
	String? sumOrderAmount;
	String? sumUserAmount;
	List<UserStatisticsCcListData>? data;

	UserStatisticsCcList();

	factory UserStatisticsCcList.fromJson(Map<String, dynamic> json) => $UserStatisticsCcListFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsCcListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserStatisticsCcListData {
	int? createdAt;
	int? updatedAt;
	String? id;
	int? type;
	String? orgId;
	String? uid;
	String? taker;
	String? name;
	String? takerName;
	String? mobile;
	String? orderTime;
	int? orderType;
	String? payTime;
	int? status;
	String? orderName;
	String? content;
	double? orderAmount;
	double? userAmount;
	String? discount;
	int? applyStatus;
	int? applyId;

	UserStatisticsCcListData();

	factory UserStatisticsCcListData.fromJson(Map<String, dynamic> json) => $UserStatisticsCcListDataFromJson(json);

	Map<String, dynamic> toJson() => $UserStatisticsCcListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}